package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("ows.txt");
        OutputStreamWriter ows=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        ows.write("让我在成都的街头走一走,噢噢噢噢");
        ows.write("直到所有的灯都熄灭了也不回头");
        System.out.println("写出完毕");
        ows.close();




    }
}
